@model BTCPayServer.Storage.ViewModels.ChooseStorageViewModel
@{
    ViewData.SetLayoutModel(new LayoutModel(nameof(ServerNavPages.Files), StringLocalizer["Storage Provider"])
        .SetCategory(WellKnownCategories.Server));
}

<form method="post">
    <div class="sticky-header">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item">
                    <a asp-action="Files" text-translate="true">Files</a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
            </ol>
            <h2>@ViewData["Title"]</h2>
        </nav>
        <button id="page-primary" type="submit" class="btn btn-primary" name="command" value="Save" text-translate="true">Next</button>
    </div>
    <partial name="_StatusMessage" />

    <div class="row">
        <div class="col-xl-10 col-xxl-constrain">
            @if (Model.ShowChangeWarning)
            {
                <div class="alert alert-danger mb-4" text-translate="true">
                    If you change your configured storage provider, your current files will become inaccessible.
                </div>
            }
            @if (!ViewContext.ModelState.IsValid)
            {
                <div asp-validation-summary="All"></div>
            }
            <div class="form-group">
                <label asp-for="Provider" class="form-label"></label>
                <select asp-for="Provider" asp-items="@Model.ProvidersList" class="form-select w-auto"></select>
            </div>
        </div>
    </div>
</form>

@section PageFootContent {
    <partial name="_ValidationScriptsPartial" />
}
